package com.tansun.easycare.rule.ruleproj.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 规则项目管理Entity
 *
 * @author lph-zl
 * @version 2020-03-08
 */
public class RuleProject extends RuleBaseEntity<RuleProject> {

    private static final long serialVersionUID = 1L;
    public static String HOMEPATH;
    private String projectname;        // 规则项目名
    private String projectcode;        // 规则编码
    private String status;        // 状态
    
    private  String targetProjectCode;

    private List<String> refs;

    private List<RuleProject> allProject;

    public RuleProject() {
        super();
    }

    public RuleProject(String id) {
        super(id);
    }

    @Length(min = 0, max = 50, message = "规则项目名长度必须介于 0 和 50 之间")
    public String getProjectname() {
        return projectname;
    }

    public void setProjectname(String projectname) {
        this.projectname = projectname;
    }

    @Length(min = 0, max = 50, message = "规则编码长度必须介于 0 和 50 之间")
    public String getProjectcode() {
        return projectcode;
    }

    public void setProjectcode(String projectcode) {
        this.projectcode = projectcode;
    }

    @Length(min = 0, max = 50, message = "状态长度必须介于 0 和 50 之间")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<String> getRefs() {
        return refs;
    }

    public void setRefs(List<String> refs) {
        this.refs = refs;
    }

    public List<RuleProject> getAllProject() {
        return allProject;
    }

    public void setAllProject(List<RuleProject> allProject) {
        this.allProject = allProject;
    }

	public String getTargetProjectCode() {
		return targetProjectCode;
	}

	public void setTargetProjectCode(String targetProjectCode) {
		this.targetProjectCode = targetProjectCode;
	}
    
    
}